

package example.serialization;

import javax.annotation.Nonnull;

/**
 * An extension of {@link EmployeeDTOSerializer} where the
 * {@link #getTypeName()} returns a different type name, but the
 * {@link #getCompactClass()} returns the same class.
 */
public class SameClassEmployeeDTOSerializer extends EmployeeDTOSerializer {
    @Nonnull
    @Override
    public String getTypeName() {
        return super.getTypeName() + "!";
    }
}
